package com.isscollage.service;

import java.util.List;

import com.isscollage.entity.Ticket;
import com.isscollage.search.TicketSearch;

public interface TicketService {

	/**
	 * 根据条件查询车票(分页查询)
	 * @param search
	 * @return
	 */
	public List<Ticket> searchTicketsByCon(TicketSearch search);
	
	/**
	 * 增加车票信息
	 * @param ticket
	 * @return
	 */
	public boolean insert(Ticket ticket);
	
	/**
	 * 查询所有车票信息
	 * @return
	 */
	public List<Ticket> searchAll();
	
	/**
	 * 根据车次号查询车票信息
	 * @param ticketId
	 * @return
	 */
	public Ticket getTicketById(Integer ticketId);
	
	/**
	 * 修改车票信息
	 * @param ticket
	 * @return
	 */
	public boolean update(Ticket ticket);
	
	/**
	 * 删除车票信息
	 * @param ids
	 * @return
	 */
	public boolean deleteAll(Integer ids[]);
	
}
